// console.log('chencongismyson')
var arr=['c','c','is','my','son']
for(var i=0;i<arr.length;i++){
  console.log(i,arr[i])
}
var sum=0;
for (var i=1;i<=100;i++){
  sum=sum+i;
}
console.log(sum);

var i=0;
while (i<arr.length){
  console.log(i,arr[i]);
  i++;
}
var str='cc'
var str2='CC'
if ( str==str2 ){
  console.log('相等')
}
else{
  console.log('不相等')
}

var catPrice=1000;
var date='11.04';
if(date=='11.11'){
  catPrice=catPrice*0.8
}else if (date=='12.12'){
  catPrice=catPrice*0.9
}else{ 
}
console.log('猫的价格是',catPrice)